set terminal pdf
set nokey
file = "bultfit"

f(x)=v*((x-h)**(k-1))*exp(-x/th)
v=75
h=2
k=2
th=33
fit f(x) file."KE" via v,h,k,th

set output "bultfitKE.pdf"
plot file."KE" lw 2, \
	f(x) lw 2 lt 3
	
f(x)=v*((x-h)**(k-1))*exp(-x/th)
v=750
h=4
k=2
th=33
fit f(x) file."KO" via v,h,k,th

set output "bultfitKO.pdf"
plot file."KO"lw 2, \
	f(x) lw 2 lt 3
	
	
	
f(x)=v*((x-h)**(k-1))*exp(-x/th)
v=4e16
h=1204
k=1.46586
th=40.6288
fit f(x) file."GE" via v,h,k,th

set output "bultfitGE.pdf"
plot file."GE" lw 2, \
	f(x) lw 2 lt 3
	
	
	
f(x)=v*((x-h)**(k-1))*exp(-x/th)
v=4e16
h=1204
k=4
th=34
#v=8.87518e8
#h=1200
#k=1.4962
#th=80
#th=45.4774
fit f(x) file."GO" via v,h,k,th

set output "bultfitGO.pdf"
plot file."GO" lw 2, \
	f(x) lw 2 lt 3
